
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>Title</title>
</head>
<body>
<center><a href="addMerchant">添加商家</a></center>
<table border="1">
    <tr>
        <td>商家的姓名</td>
        <td>商家的店铺名称</td>
        <td>商家账号</td>
        <td>商家密码</td>
        <td>商家经营范围</td>
        <td>操作</td>
    </tr>
    <c:forEach items="${merchantList }" var="merchant">
        <tr>
            <td>${merchant.merchantName}</td>
            <td>${merchant.merchantShopName}</td>
            <td>${merchant.merchantAccount}</td>
            <td>${merchant.merchantPassword}</td>
            <td>${merchant.merchantScope}</td>
            <td><a href="update?id=${merchant.id}">修改</a>||<a href="delete?id=${merchant.id}">删除</a>||<a href="queryById?id=${merchant.id}">查看</a></td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
